# import os
# import django
from mjp.piCameraServer import startPiCameraServer

from mqttAdmin import mqtt_run

import threading
import time
# os.environ.setdefault('DJANGO_SETTING_MODULE', 'piDjango.settings')
# django.setup()


# def startDjango():
#     n = os.system('python ../manage.py runserver')

def wsgiThreads():
    # t2 = threading.Thread(target=mqtt_run())
    # t2.start()
    # t1 = threading.Thread(target=startPiCameraServer())
    # t1.start()
    time.sleep(1)
    # t3 = threading.Thread(target=startDjango())
    # t3.start()


if __name__ == '__main__':
    t1 = threading.Thread(target=startPiCameraServer())
    t1.start()



